package com.zhijian.warehouse.manage.service;

import com.zhijian.warehouse.manage.entity.po.StoreStockRecordProduct;
import com.zhijian.warehouse.manage.entity.vo.request.StoreStockRecordProductSearchVo;
import com.zhijian.warehouse.manage.entity.vo.request.StoreStockRecordProductSaveOrUpdateVo;
import com.zhijian.warehouse.manage.entity.vo.response.StoreStockRecordProductVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 盘点产品明细表 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-10-27 13:58:00
 */
public interface StoreStockRecordProductService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    StoreStockRecordProduct selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    StoreStockRecordProductVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param storeStockRecordProduct
    * @return
    */
    Long insert(StoreStockRecordProduct storeStockRecordProduct);

    /**
    * 动态新增
    *
    * @param storeStockRecordProduct
    * @return
    */
    Long insertSelective(StoreStockRecordProduct storeStockRecordProduct);

    /**
    * 更改
    *
    * @param storeStockRecordProduct
    * @return
    */
    boolean update(StoreStockRecordProduct storeStockRecordProduct);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(StoreStockRecordProduct record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(StoreStockRecordProductSaveOrUpdateVo saveOrUpdateVo);


    /**
    * 保存vo
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean saveByVo(StoreStockRecordProductVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(StoreStockRecordProductSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param storeStockRecordProductSearchVo
    * @return
    */
    StoreStockRecordProductVo selectOne(StoreStockRecordProductSearchVo storeStockRecordProductSearchVo);

    /**
    * 总数
    *
    * @param storeStockRecordProductSearchVo
    * @return
    */
    Integer count(StoreStockRecordProductSearchVo storeStockRecordProductSearchVo);

    /**
    * 列表
    *
    * @param storeStockRecordProductSearchVo
    * @return
    */
    List<StoreStockRecordProductVo> selectList(StoreStockRecordProductSearchVo storeStockRecordProductSearchVo);

    /**
    * 分页查询
    *
    * @param storeStockRecordProductSearchVo
    * @return
    */
    Page<StoreStockRecordProductVo> selectPage(StoreStockRecordProductSearchVo storeStockRecordProductSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<StoreStockRecordProduct> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param storeStockRecordProductSearchVo
    * @return
    */
    void deleteByCondition(StoreStockRecordProductSearchVo storeStockRecordProductSearchVo);
}